<template>
  <div id="sendEmail">
<el-form ref="form" :model="form" label-width="80px">
  <el-form-item label="发送人:">
    <el-input v-model="form.name"></el-input>
  </el-form-item>
  <el-form-item label="主题:">
    <el-input v-model="form.name"></el-input>
  </el-form-item>
  <el-form-item label="正文内容:">
    <el-input type="textarea" v-model="form.desc"></el-input>
  </el-form-item>
  <el-form-item label=" ">
    <el-button type="primary" @click="onSubmit">发送</el-button>
    <el-button>取消</el-button>
  </el-form-item>
</el-form>
</div>
</template>
<script>
  export default {
    name: 'sendEmail',
    data() {
      return {
        form: {
          sender: '',
          theme: '',
          content: ''
        }
      }
    },
    methods: {
      onSubmit() {
        console.log('submit!');
      }
    }
  }
</script>
<style scoped>
#sendEmail{
	width:60%;
	margin:0 auto;
	}
</style>
